using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class Cardiac_ReportEditSaveMap : EntityTypeConfiguration<Cardiac_ReportEditSave>
    {
        public Cardiac_ReportEditSaveMap()
        {
            // Primary Key
            this.HasKey(t => t.EV_ID);

            // Properties
            this.Property(t => t.patient_id)
                .HasMaxLength(20);

            // Table & Column Mappings
            this.ToTable("Cardiac_ReportEditSave");
            this.Property(t => t.EV_ID).HasColumnName("EV_ID");
            this.Property(t => t.EV_Content).HasColumnName("EV_Content");
            this.Property(t => t.patient_id).HasColumnName("patient_id");
            this.Property(t => t.follow_up_id).HasColumnName("follow_up_id");
        }
    }
}
